﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<div class="AdminPageText">
    Danh sách đơn đặt hàng
</div>
<br />
<table class="Grid" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th style="width: 120px;">
                ID
            </th>
            <th style="width: 200px;">
                Ngày đặt hàng
            </th>
            <th style="width: 120px;">
                Đã xác nhận
            </th>
            <th style="width: 120px;">
                Đã giao hàng
            </th>
            <th style="width: 120px;">
                Hủy đơn hàng
            </th>
    </thead>
    <% for (int i = 0; i < Model.DonDatHangModel.GetModel.LstObjModel.Count; i++)
       {
           if (i % 2 != 0)
           {%>
    <tr class="Row" id="row-<%= Model.DonDatHangModel.GetModel.LstObjModel[i].ID %>">
        <% }
        else
        { %>
        <tr class="AlternatingRow" id="row-<%= Model.DonDatHangModel.GetModel.LstObjModel[i].ID %>">
            <% } %>
            <td style="text-align: center;">
                <span style="">
                    <%= Model.DonDatHangModel.GetModel.LstObjModel[i].ID %></span>
            </td>
            <td style="text-align: center;">
                <span style="">
                    <%= string.Format("{0:dd/MM/yyyy hh:mm:ss}", Model.DonDatHangModel.GetModel.LstObjModel[i].NgayDatHang.Value)%></span>
            </td>
            <td style="text-align: center;">
                <span style="">
                    <%= Html.CheckBox("IsVerified", Model.DonDatHangModel.GetModel.LstObjModel[i].DaXacNhan.Value, new { disabled = "disabled" })%></span>
            </td>
            <td style="text-align: center;">
                <span style="">
                    <%= Html.CheckBox("IsShipped", Model.DonDatHangModel.GetModel.LstObjModel[i].DaGiaoHang.Value, new { disabled = "disabled" })%></span>
            </td>
            <td style="text-align: center;">
                <span style="">
                    <%= Html.CheckBox("IsCanceled", Model.DonDatHangModel.GetModel.LstObjModel[i].HuyDonHang.Value, new { disabled = "disabled" })%></span>
            </td>
        </tr>
        <% } %>
</table>
